/**
  *@file    drvV9240.h
  *@brief   meter communicaton driver
  *@create  zxf 2021-06-30
  *@version V1.0.0
  */
#ifndef __DRV_V9240_H__
#define __DRV_V9240_H__
#include "arch_if.h"

/* Exported define --------------------------------------*/

/* Exported macro ---------------------------------------*/

/* Exported typedef -------------------------------------*/

/* Exported variables -----------------------------------*/

/* Exported functions -----------------------------------*/


void V9240_InitIo(void);
void V9240_InitUart(void);
void V9240_OutLevel(u8 hi);

u8 V9240_FrameCheck(void);
void V9240_ReadPass(u16 uAddr, u8 uLen);
void V9240_Write(u16 uAddr, u32 uData);

void V9240_ClearRecv(void);
u8   V9240_GetRxFlag(void);
u16  V9240_GetRxByte(void);
u8 * V9240_GetRxBuff(void);

#endif

